//
//  Fruit.m
//  OC作业
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Fruit.h"

@implementation Fruit


//- (void)setName:(NSString *)name{
//    _name = name;
//}
//- (NSString *)name{
//    return _name;
//}
//
//- (void)setSkin:(NSString *)skin{
//    _skin = skin;
//}
//- (NSString *)skin{
//    return _skin;
//}
//

- (instancetype)initWithName:(NSString *)name
                        skin:(NSString *)skin{
    
    self = [super init];
    if (self) {
        _name = name;
        _skin = skin;
    }
    return self;
}


+ (instancetype)fruitWithName:(NSString *)name
                         skin:(NSString *)skin{

    Fruit *fruit = [[Fruit alloc]initWithName:name skin:skin];
    return fruit;
}





@end
